import fly from '@/utils/request'
import URL from '@/utils/host'


//砍价秒抢列表
export function rushList(data){
    return fly.request({
        method: 'get', 
        url:URL.host2+'spike/list/'+data.status,
        params: data
    })
}

// 砍价秒抢详情

export function rushinfo(data){
    return fly.request({
        method: 'get', 
        url:URL.host2+'spike/info/'+data.id,
        params: data
    })
}
export function rushFee(data){
    return fly.request({
        method: 'get', 
        url:URL.host2+'spike/get_fee/'+data.id,
        params: data
    })
}
//创建订单

export function rushorder(data){
    return fly.request({
        method: 'post',
        url:URL.host2+'spike/submit/'+data.id,
        body: data
    })
}